#include"proc.h"
char str[MAX];
const char* spin="\\|/-";

void line(){
  memset(str,'\0',sizeof(str));  
  int i=0;
  for(i=0;i<100;i++){
     str[i]='#';
     printf("[%-100s][%3d%%][%c]\r",str,i,spin[i%4]);
     fflush(stdout);
     usleep(30000);
  }
  printf("[%-100s][%3d%%][%c]\r",str,i,spin[i%4]);
  printf("\n");
}
